package com.example.xiaomi.service;

import com.example.xiaomi.entity.contents;
import com.example.xiaomi.entity.hot;
import com.example.xiaomi.entity.userinfo;
import com.example.xiaomi.mapper.HotMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotServiceImpl implements HotService{
    @Autowired
    private HotMapper mapper;
    @Override
    public List<hot> findAllhot(String startDate,String endDate) {
        List<hot> Allhot = mapper.findAllhot(startDate, endDate);
        return Allhot;
    }

    @Override
    public List<contents> findAllcount(String Date) {
        return mapper.findAllcount(Date);
    }

    @Override
    public List<hot> findAllhotcontents() {
        return mapper.findAllhotcontents();
    }

    @Override
    public List<userinfo> findAlltopuser() {
        return mapper.findAlltopuser();
    }

    @Override
    public List<userinfo> findAlltypecount() {
        return mapper.findAlltypecount();
    }

    @Override
    public List<hot> findAllkeytopic(String topic) {
        return mapper.findAllkeytopic(topic);
    }

    @Override
    public List<hot> findAlltopiccontents(String topic) {
        return mapper.findAlltopiccontents(topic);
    }
}
